package LJ;

import oi.*;

import java.util.Scanner;

public class yh extends gontong {

    public int menu(){
        Scanner s=new Scanner(System.in);
        System.out.println("=================================");
        System.out.println("欢迎您,请输入");
        System.out.println("1.查看书籍列表");
        System.out.println("2.查看图书");
        System.out.println("3.借书");
        System.out.println("4.还书");
        System.out.println("5.退出");
        System.out.println("=================================");
        int chioc=s.nextInt();
        return chioc;
    }
    public yh(){
        a=new IOpreation[]{
                new Read(),new Find(),new js(),new Rturn(),new EX()
        };
    }
//    public IOpreation[] dsf=new IOpreation[]{
//            new Read(),new Find(),new js(),new Rturn(),new EX()
//    };

    @Override
    public void work(int z,BookList bookList) {
        a[z].work(bookList);
    }
}
